package com.hjt.common.exception;

/**
 * 没有库存的异常
 * @author:97007
 * @date:2021/10/12 19:23
 */
public class NoStockException extends RuntimeException{
    private Long skuId;
    public NoStockException(Long skuId) {
        super(skuId+"没有足够的库存");
    }

    public NoStockException(String message) {
        super(message);
    }

    public Long getSkuId() {
        return skuId;
    }
}
